#!/usr/bin/python

from sys import exit, argv, stderr

if(len(argv) < 5):
    print """usage: %s ip/mask bssid router power
    """ % argv[0]
    exit(-1)
    
prefixip=str(argv[1])
ip=prefixip.split('/')[0]
bssid=str(argv[2])
router=str(argv[3])
power=str(argv[4])

file=open("./node","w")

print>>file,prefixip,bssid,router,power

file.close()
